<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05demo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <input type="checkbox" value="java" v-mode="languages">java<br>
    <input type="checkbox" value="java" v-mode="languages">php<br>
    <input type="checkbox" value="java" v-mode="languages">js<br>
    <h2 v-on:click="show_languages">你选择了{{languages.join(",")}}</h2>
</div>
<script type="text/javascript">
    var app = new Vue({
        el: "#app",
        data: {
            languages: []
        },
        methods: {
            show_languages() {
                console.log(this.languages);
            }
        }
    });
</script>
</body>
</html>